/*
 * @Author: your name
 * @Date: 2020-06-15 17:51:15
 * @LastEditTime: 2020-06-15 18:05:17
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \codeSnippet\front\plugins\axios.js
 */
import Vue from 'vue'
import axios from 'axios'

const service = axios.create({
  baseURL:'/api'
})




export const $http = service
export const $post = (...option)=>service.post(...option)
export const $get = (option)=>service(option)

Vue.prototype.$http=service
Vue.prototype.$post=$post
Vue.prototype.$get=$get
